package cn.com.haopy.yue.ai.db.entity.arisk;

import cn.com.haopy.yue.ai.db.entity.BaseEntity;
import cn.com.haopy.yue.ai.db.mybatis.JsonObjectsTypeHandler;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.ibatis.type.JdbcType;

import java.util.List;
import java.util.Map;

/**
 * @Description: TODO
 * @Author DuTao
 * @Date 2025/3/26 9:05
 */
@Data
@TableName(value = "arisk_papers_options", autoResultMap = true)
@ApiModel(value = "问卷选项")
public class AIRiskPapersOptions extends BaseEntity {
    @TableField(value = "paper_id")
    @ApiModelProperty(value = "问卷ID")
    private Integer paperId;

    @TableField(value = "topic_id")
    @ApiModelProperty(value = "问题ID")
    private Integer topicId;

    @ApiModelProperty(value = "问题名称")
    @TableField(value = "topic_name")
    private String topicName;


    @ApiModelProperty(value = "是否是多选")
    @TableField(value = "is_multi_choose")
    private Boolean isMultiChoose;


    /**
     * 选项
     */
    @ApiModelProperty(value = "选项")
    @TableField(value = "options", jdbcType = JdbcType.BLOB, typeHandler = JsonObjectsTypeHandler.class)
    private List<Map<String, Object>> options;

    @TableField(value = "sort_index")
    @ApiModelProperty(value = "问题索引")
    private Integer sortIndex;


}
